def make_album(singer_name, album_name, number_of_songs=None):
    """创建一个描述音乐专辑的字典"""
    if number_of_songs:
        return {'singer name': singer_name, 'album name': album_name,
                'number of songs': number_of_songs}
    else:
        return {'singer name': singer_name, 'album name': album_name}


while True:
    print('Enter the name of the singer(Enter "quit" to stop.):')
    name_of_singer = input()
    if name_of_singer == 'quit':
        break
    else:
        print('Enter the album name:')
        name_of_album = input()
        print(make_album(name_of_singer, name_of_album))
